//
//  JsMenuViewItemVm.m
//  JsoUtilitySdk
//
//  Created by Gikki Ares on 2021/8/4.
//

#import "JsMenuItemVm.h"
@interface JsMenuItemVm() {
@public
	int mi_public2;
@private
	int mi_private2;
@protected
	int mi_protected2;
}
@end

@implementation JsMenuItemVm

- (instancetype)init {
	if(self = [super init]) {
		self->mi_public = 1;
		self->mi_private = 1;
		self->mi_protected = 1;
		self->mi_public2 = 2;
		self->mi_private2 = 2;
		self->mi_protected2 = 2;
	}
	return self;
}


- (JsMenuItemStyle *)currentStyle {
	if(self.isSelected) {
		return self.selectedStyle;
	}
	else {
		return self.unselectedStyle;
	}
}

- (instancetype)initWithTitle:(NSString *)title {
	if(self == [super init]) {
		self.title = title;
	}
	return self;
}
- (instancetype)initWithTitle:(NSString *)title imageName:(nullable NSString *)imageName {
	if(self == [super init]) {
		self.title = title;
		self.imageName = imageName;
	}
	return self;
}

- (instancetype)initWithTitle:(NSString *)title imageUrl:(nullable NSString *)imageUrl {
	if(self == [super init]) {
		self.title = title;
		self.imageUrl = imageUrl;
	}
	return self;
}


@end
